<?php session_start(); 
include('../ketnoi.php');

?>
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>Tài Chính Kinh Tế Toàn Cầu</title>

<meta http-equiv="pragma" content="no_cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no_cache">
<script type="text/javascript" src="scripts/mootools.js"></script>
<link rel="stylesheet" href="css/system.css" type="text/css">
<link href="css/icon.css" rel="stylesheet" type="text/css">
<link href="css/login.css" rel="stylesheet" type="text/css">
<link href="css/admin.styles.css" rel="stylesheet" type="text/css">
<link href="css/ja.css" rel="stylesheet" type="text/css">
<!--[if IE 7]>
<link href="css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if lte IE 6]>
<link href="css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/rounded.css">
<script language="javascript" type="text/javascript">
	function setFocus() {
		document.f_dangnhap_ht.user_ht.select();
		document.f_dangnhap_ht.user_ht.focus();
	}
</script>
<style type="text/css">
<!--
.style1 {color: #0000FF}
-->
</style>
<link href="css/fetchscript.css" type="text/css" rel="stylesheet"/>
</head><body onLoad="setFocus();">
<table width="1300" style="table-layout: fixed;" align="center">
  <tr>
    <td align="center">
       <div><img src="images/banner2.png" width="100%"/></div>
    </td>
  </tr>
  <tr><td>
<div id="content-box">

<?php 
if($_SESSION['user']!="")
{
?>
<table width="1300" style="table-layout: fixed;" align="center"><tr><td>
<div id="header-box" style="margin:0">
		<div id="module-status" style="float:right; padding-right:30px; color: #F00; padding-top:0px">
			<span ><a href="?option=com_chanpass&action=view">Đổi mật khẩu </a></span> | 
			<span ><a href="log_out.php">Thoát </a></span>
		</div>
<div id="module-menu">
<ul id="ja-cssmenu" class="clearfix">
<li class="havechild"><a href="index.php" title="Trang chủ"><span>Trang chủ</span></a>
<ul>
<li><a style="background: url(images/menu/icon-16-cpanel.png) no-repeat 3px;" href="index.php" title="Bảng điều khiển">Bảng điều khiển</a></li>
<li><a style="background: url(images/menu/icon-16-content.png) no-repeat 3px;" href="?option=com_trungtam&action=view" title="Bảng điều khiển">Thông tin trung tâm</a></li>
<li><a style="background:url(images/menu/icon-16-logout.png) no-repeat 3px;" href="log_out.php" title="Thoát">Thoát</a></li>
</ul>
</li> 

<li class="havechild"><a  title="Tin tức"><span>Tin tức</span></a>
<ul>
<li><a style="background: url(images/menu/icon-16-editadd.png) no-repeat 3px;" href="?option=com_content&action=insert"  title="Thêm mới bài viết"><span>Thêm mới tin tức</span></a></li> 
<li><a style="background: url(images/menu/icon-16-article.png) no-repeat 3px;" href="?option=com_content&action=view"  title="Quản lý bài viết"><span>Quản lý tin tức</span></a></li>
</ul></li>  
<li class="havechild"><a href="?option=com_contact&action=view" title="Liên hệ"><span>Hỏi đáp</span></a></li> 
<li class="havechild"><a title="Phần mở rộng"><span>Phần mở rộng</span></a>
<ul>
<li><a style="background: url(images/menu/icon-16-content.png) no-repeat 3px;" href="?option=com_banner&action=view"  title="Quản lý ảnh ngẩu nhiên"><span>Quản lý banner</span></a></li> 
<li><a style="background: url(images/menu/icon-16-reload.png) no-repeat 3px;" href="?option=com_order_status&action=view"  title="Quản lý banner"><span>Đơn vị liên kết</span></a></li> 
<li><a style="background: url(images/menu/icon-16-default.png) no-repeat 3px;" href="?option=com_advertisement&action=view"  title="Quản lý các quảng cáo"><span>Quản lý các cơ sở</span></a></li>

</ul>
</li>
</ul>
</div>
</div></td></tr>
<tr><td><div style=" border-bottom: 1px #CCCCCC solid;"></div></td></tr>
</table>	

<div class="m">
<table width="1300" style="table-layout: fixed;" align="center"><tr>
<td width="235" height="394" style="vertical-align: top;">
<?php include 'menu.php'; ?>
</td>
<td id="vmPage" style="width: 1050; vertical-align: top; padding-left: 5px; padding-right:10px">
<?php
			   $id=$_GET['id'];
				switch($_REQUEST[option])
				{
				default:
				include 'giaodien.php';
				break;
			   	
				case "com_lt" :
				include ('lienthong.php');
				break;
				
			    case "com_content" :
				include ('baiviet.php');
				break;
				
				case "com_users" :
				include ('khachhang.php');
				break;

				case "com_contact" :
				include ('lienhe.php');
				break;
				
				case "com_structure" :
				include ('thoigian.php');
				break;
				
				case "com_advertisement" :
				include ('coso.php');
				break;
				
				case "com_images" :
				include ('nganhan.php');
				break;
				
				case "com_lichhoc" :
				include ('scheduled.php');
				break;
				
				case "com_config" :
				include ('cauhinh.php');
				break;
				
				case "com_trungtam" :
				include ('cuahang.php');
				break;
				
				case "com_categories" :
				include ('chude.php');
				break;
				
				case "com_order_status" :
				include ('lienket.php');
				break;
				
				
				case "com_brand" :
				include ('nhanhieu.php');
				break;
				
				case "com_product" :
				include ('sanpham.php');
				break;
				
				case "com_manufacturer" :
				include ('nhacc.php');
				break;
				
				case "com_student" :
				include ('register.php');
				break;
				
				case "com_order" :
				include ('hoadon.php');
				break;
				
				case "com_method" :
				include ('thanhtoan.php');
				break;
				
				case "com_report" :
				include ('baocao.php');
				break;
				
				case "com_consider" :
				include ('danhgiasp.php');
				break;
				
				case "com_statistics" :
				include ('thongke.php');
				break;
				
				case "com_user" :
				include ('user.php');
				break;
				
				case "com_banner" :
				include ('banner.php');
				break; 
				
				case "com_chanpass" :
				include ('changepass.php');
				break;
				
				
			}
			?>
</td>
</tr></table></div>


		
<?php

}
else
{
?>
<div class="padding">
			<div id="element-box" class="login">
			  <div class="m">
              <h1>Đăng nhập</h1>
<?php
if( $_SESSION['loi']!=""){
	?>
<dl id="system-message">
<dt class="error">Lỗi</dt>
<dd class="error message fade">
	<ul>
		<li><?php echo $_SESSION['loi'];?></li>
	</ul>
</dd>
</dl>
  <?php
  }
?>	
<div id="section-box">
<div class="m">
<form id="form-login" name="f_dangnhap_ht" method="post" action="dangnhapht.php" >
	<p id="form-login-username">
		<label for="modlgn_username">Tên đăng nhập</label>
		 <input name="user_ht" id="modlgn_username" class="inputbox" size="15" type="text" onBlur="if (this.value=='') this.value='admin';" onFocus="if (this.value=='admin') this.value='';" value="admin" style="background-color: #FFFFCC" />
	</p>

	<p id="form-login-password">
		<label for="modlgn_passwd">Mật mã</label>
		<input name="pass_ht"  id="modlgn_passwd" class="inputbox" size="15"  type="password" onBlur="if (this.value=='') this.value='mậtkhau';" onFocus="if (this.value=='mậtkhau') this.value='';" value="mậtkhau"  />
	</p>
		<p id="form-login-password" align="right">
		<input type="submit" name="Submit" class="button_1" value="Đăng nhập" />
		</form>
</div>
</div>
		
					<p>Dùng một tên đăng nhập và Mật mã hợp lý để đăng nhập vào khu vực quản trị.</p>
					
					<div id="lock"><img src="images/images.jpg" width="150" height="150"></div>
					<div class="clr"></div>
			  </div>
		  </div>
		</div>
<?php	
}?>
</div></td></tr></table>
</body></html>